<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title>Installation</title>
</head>
<body
 style="color: rgb(80, 0, 0); background-color: rgb(255, 255, 240);"
 link="#500000" vlink="#990099" alink="#000099">
<div style="text-align: center;">
<h1 style="text-align: center;">Installation</h1>
<br>
<div style="text-align: left;">WINDOWS:<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Just unpack the binaries of
server and example services and client applications and run coid.exe.
To compile, look for the .dsp and .dsw project files for Visual Studio.<br>
<br>
<br>
LINUX:<br>
<ul>
  <li>&nbsp;&nbsp;&nbsp; Compiling:</li>
</ul>
<span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
make</span><br style="font-family: monospace;">
<br>
<ul>
  <li>&nbsp;&nbsp;&nbsp; Quick start: after calling make the binaries
are put into the bin directory, and you can run the server right away
from there:<br>
  </li>
</ul>
<span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
bin/coid -l bin/libcoidserver.so bin</span><br
 style="font-family: monospace;">
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; That means:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Start bin/coid, load server
library bin/libcoidserver.so.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Look for config file in the
'bin' directory (probably there won't be any config (.devconf) file,
when the program defaults to loading all devices from the
&lt;config_dir&gt;/device directory, what is bin/device in this case). <br>
<br>
<ul>
  <li>&nbsp;&nbsp;&nbsp; Running from any directory (without
installation):</li>
</ul>
<span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
coid -l path/server_library.so config_directory</span><br
 style="font-family: monospace;">
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; and in the .devconf file
(placed in config_directory) add/change entry "directory" to path where
your device directory is placed.<br>
<br>
<ul>
  <li>&nbsp;&nbsp;&nbsp; Installation to /usr/local/...:</li>
</ul>
<span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
make install</span><br style="font-family: monospace;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (as root), this will install
coid loader, coid server library, coidgen, coidc (console) and console
device.<br>
<br>
<ul>
  <li>&nbsp;&nbsp;&nbsp; Chat service and http server service:</li>
</ul>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If you want to compile and
install other services (http server or chat), type:<br>
<br>
<span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
make chat</span><br style="font-family: monospace;">
<span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
make http</span><br style="font-family: monospace;">
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; or just:<br>
<span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
make all</span><br style="font-family: monospace;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; to build everything, and
finally copy their device folders (<span style="font-family: monospace;">bin/chat</span>,
<span style="font-family: monospace;">bin/httpserv</span>) to <span
 style="font-family: monospace;">/usr/local/lib/coid/device</span><br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Another way:<br>
<span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
make install_chat</span><br style="font-family: monospace;">
<span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
make install_http</span><br style="font-family: monospace;">
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; to install all, type:<br>
<span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
make install_all</span><br style="font-family: monospace;">
<br>
<br>
<ul>
  <li>&nbsp;&nbsp;&nbsp; Running coid (after the installation):</li>
</ul>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; just type:<br>
<span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
coid</span><br style="font-family: monospace;">
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If you have installed coid,
its default startup is:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; load <span
 style="font-family: monospace;">/usr/local/lib/coid/libcoidserver.so</span>
and search for <span style="font-family: monospace;">/etc/coid/.devconf</span>
(if no config dir was given as argument).<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; It will look there for the
device directory, default is <span style="font-family: monospace;">/usr/local/lib/coid/device</span><br>
<br>
<br>
<ul>
  <li>&nbsp;&nbsp;&nbsp; Need help ?</li>
</ul>
<span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
man coid</span><br style="font-family: monospace;">
<span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
man coidgen</span><br style="font-family: monospace;">
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; <a
 href="coid.html">documentation</a><br>
<br>
<ul>
  <li>&nbsp;&nbsp;&nbsp; Examples:</li>
</ul>
<span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
bin/coid -l bin/libcoidserver.so bin -p 54321</span><br
 style="font-family: monospace;">
<span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
coid -p 12345 ~/.coid</span><br style="font-family: monospace;">
<br style="font-family: monospace;">
<span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
bin/coid -l bin/libcoidserver.so bin -p 54321</span><br
 style="font-family: monospace;">
<span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
# -l option requires path (if the library is not located in common
locations</span><br style="font-family: monospace;">
<span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
# such as /usr/lib, ...),</span><br style="font-family: monospace;">
<span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
# so you must use prefix './' for current directory,&nbsp; e.g.
./libcoidserver.so</span><br style="font-family: monospace;">
<span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
cd bin</span><br style="font-family: monospace;">
<span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
coid -l ./libcoidserver.so . -p 54321</span><br
 style="font-family: monospace;">
<br style="font-family: monospace;">
<span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
# console:</span><br style="font-family: monospace;">
<span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
coidc localhost:12345</span><br style="font-family: monospace;">
<span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
coidc -all localhost:55099</span><br style="font-family: monospace;">
<br style="font-family: monospace;">
<br>
</div>
<br>
<div style="text-align: left;"><br>
</div>
</div>
</body>
</html>
